#ifndef _CHAR_H
#define _CHAR_H
/* Includes 头文件-------------------------------------*/
#include "main.h"
#include "Shrink.h"
#include <stdlib.h>

struct CountVal
{
  uint16_t Initialval;//计数初始值
  uint8_t CountDir;//计数方向，递增or递减
  uint16_t X_Coord;//x轴坐标，单位像素点
  uint16_t Y_Coord;//y轴坐标，单位像素点
  uint8_t CharHigh;//字符高度
};
extern struct CountVal CntV;

struct TimeVal
{
  uint16_t Format;//显示格式
  uint16_t Year;//年
  uint8_t  Month;//月
  uint8_t  Day;//日
  uint8_t  Hours;//时
  uint8_t  Min;//分
  uint8_t  Sec;//秒
  uint16_t X_Coord;//x轴坐标，单位像素点
  uint16_t Y_Coord;//y轴坐标，单位像素点
  uint8_t CharHigh;//字符高度
};
extern struct TimeVal TimV;
extern uint8_t TimCnt_Func;
extern uint8_t Preflag;
extern uint32_t Last_PrintDateNum;
extern uint8_t CntPic_Coexist;
extern uint8_t CountReflash;

uint8_t TimCntCmdHandle(char *dat);
void FLASH_Counter_Storage(void);
void FLASH_PicCnt_Read(void);
void TimCntTask(void);
#endif
